package com.cskaoyan.module.vo.wx.wxy;

import com.cskaoyan.module.bean.vo.AddressData;
import com.cskaoyan.module.bean.vo.WxOrderListVo;
import com.cskaoyan.module.pojo.MarketAddress;
import lombok.Data;

import java.util.List;

@Data
public class WxOrderListDataVo {
    private Integer total; //总的数据量，没有分页的情况下的数据量
    private Integer pages; //总的页码数
    private Integer limit; //当前页最多的数据量
    private Integer page; //当前页的页码
    private  List<WxOrderListVo> list; //当前页的数据
    //alt + s

    public static WxOrderListDataVo data(long total, Integer pages, Integer limit, Integer page, List<WxOrderListVo> list) {
        WxOrderListDataVo orderListDataVo = new WxOrderListDataVo();
        orderListDataVo.setTotal((int) total);
        orderListDataVo.setPages(pages);
        orderListDataVo.setPage(page);
        orderListDataVo.setLimit(limit);
        orderListDataVo.setList(list);
        return orderListDataVo;
    }
}
